package org.lq.ssm.vo.mapper;

import org.lq.ssm.dto.RoleDTO;
import org.lq.ssm.vo.RoleVO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface RoleVOMapper {

    RoleVOMapper INSTANCE = Mappers.getMapper(RoleVOMapper.class);

//    @Mappings({
//            @Mapping(source = "depts" ,target = "depts"),
//            @Mapping(source = "menus" ,target = "menus"),
//            @Mapping(source = "permissions",target = "permissions")
//    })
    List<RoleVO> roleDTOToVO(List<RoleDTO> roleDTOS);
}
